package com.qidianit.mes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.security.Timestamp;
import java.util.Date;

public class DeviceLedger {
    private int id;                          // 设备记录ID
    private String deviceCode;               // 设备编码
    private String deviceName;                // 设备名称
    private String brand;                     // 品牌
    private int categoryId;                   // 设备分类ID

    private String categoryName;
    private String production;                // 生产
    private String model;                     // 规格型号
    private int workshopId;                   // 所属车间ID

    private String workshopName;
    private String remarks;                   // 备注
    private String deviceStatus;              // 设备状态
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    public DeviceLedger() {
    }

    public DeviceLedger(int id, String deviceCode, String deviceName, String brand, int categoryId, String categoryName, String production, String model, int workshopId, String workshopName, String remarks, String deviceStatus, Date createdAt) {
        this.id = id;
        this.deviceCode = deviceCode;
        this.deviceName = deviceName;
        this.brand = brand;
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.production = production;
        this.model = model;
        this.workshopId = workshopId;
        this.workshopName = workshopName;
        this.remarks = remarks;
        this.deviceStatus = deviceStatus;
        this.createdAt = createdAt;
    }

    // Getters and Setters


    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getProduction() {
        return production;
    }

    public void setProduction(String production) {
        this.production = production;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public int getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(int workshopId) {
        this.workshopId = workshopId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(String deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}
